crypto: put legacy _handle accessors on prototypes#24269
crypto: put legacy _handle accessors on prototypes#24269targos wants to merge 1 commit intonodejs:masterfrom
Conversation
Creating deprecated accessors each time an object is created is very time consuming. Refs: nodejs#22747 Fixes: nodejs#24266
|
Why wasn't the |
|
Wasn't removed outright because it breaks native modules using it. Deprecation was the first step, outright removal will happen in next major (I think, I'm a bit fuzzy on how fast we can do these things now). |
|
I originally proposed to remove them, but we agreed to add a deprecation cycle first. |
bnoordhuis
left a comment
There was a problem hiding this comment.
LGTM but if BC is a concern, then keep in mind that this change affects code that checks obj.hasOwnProperty('_handle').
|
Landed in e83d7e8. |
Creating deprecated accessors each time an object is created is very time consuming. Refs: #22747 Fixes: #24266 PR-URL: #24269 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Creating deprecated accessors each time an object is created is very time consuming. Refs: #22747 Fixes: #24266 PR-URL: #24269 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Creating deprecated accessors each time an object is created is very time consuming. Refs: nodejs#22747 Fixes: nodejs#24266 PR-URL: nodejs#24269 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
|
@targos is this something we'd potentially want to backport to |
|
The change that warranted this was semver-major and isn't in v10.x |
Creating deprecated accessors each time an object is created is very
time consuming.
Refs: #22747
Fixes: #24266
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes